package com.zlt.service.impl;

import com.zlt.bean.User;
import com.zlt.dao.UserDao;
import com.zlt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao ;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User doLogin(String username, String password) {
        return userDao.doLogin(username,password);
    }
}
